import React, { Component } from 'react'

export default class MyFavorite extends Component{
    constructor(props){
        super(props)
    }

    render(){
        console.log(this.props.name)
        let list=this.props.name
        return(
            <div className="every_one">
                {
                    list.map((item,i)=>{
                        return(
                            <dl key={i}>
                                <dt><img src={item.coverImg} /></dt>
                                <dd>
                                <p>TRENDIANO</p>
                                <p>{item.name}</p> 
                                </dd>
                            </dl>
                        )
                    })
                }
                
                
            </div>
        )
    }
} 
